
//软件联动
!function(){
	var titles = $('.soft .header .item')
	divs = $('.soft-body .item')
	if (titles.length != divs.length)
		return
	titles.mouseover(function(e){
		var index = titles.index(this);
		titles.removeClass('select')
		$(this).addClass('select')
		divs.removeClass('select')
		divs.eq(index).addClass('select')

	})
}()

	var backtop = document.getElementById('backtop');
	var timer = null;
	var istop = true;
	var height = document.documentElement.clientHeight;
	window.onscroll = function () {
		var ostop = document.documentElement.scrollTop || document.body.scrollTop;
		if (ostop >= 100) {
			backtop.style.display = 'block';
		} else {
			backtop.style.display = 'none';
		}
		if (!istop) {
			clearInterval(timer);
		}
		istop = false;
	}
	backtop.onclick = function () {
		timer = setInterval(function () {
			var ostop = document.documentElement.scrollTop || document.body.scrollTop;
			var speed = ostop / 6;
			document.documentElement.scrollTop = document.body.scrollTop = ostop - speed;
			istop = true;
			if (ostop == 0) {
				clearInterval(timer);
			}
		}, 30)
	}
